class Incentivo < ActiveRecord::Base

  attr_protected :mnemonic

  with_options :readonly => true do |i|
    i.has_and_belongs_to_many :areas
    i.has_and_belongs_to_many :documentos
    i.has_and_belongs_to_many :precondicoes
  end

  validates_presence_of   :descricao, :mnemonic, :abreviacao, :areas
  validates_uniqueness_of :descricao, :mnemonic

end
